﻿using System;
using System.Linq;


class SortByLengthOfElements
{
    static void Main()
    {
        char[] alphabet = { 'a', 'b', 'c', 'd', 'e', 'f', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };
        string[] arrayOfStrings = new string[20];
        Random randomNumber = new Random();

        for (int counter = 0; counter < arrayOfStrings.Length; counter++)
        {
            int randomLength = randomNumber.Next(0, 23);
            string randomString = "";
            for (int length = 0; length <= randomLength; length++)
            {
                randomString += alphabet[length].ToString();
            }
            arrayOfStrings[counter] = randomString;
        }

        //foreach (var number in arrayOfStrings)
        //{
        //    Console.WriteLine(number);
        //}

        Array.Sort(arrayOfStrings);
        //Array.Reverse(arrayOfStrings);

        foreach (var str in arrayOfStrings)
        {
            Console.WriteLine(str);
        }

    }
   
}